package interface_test;

public class Test extends Abtest implements ITest {
    public static void main(String[] args) {
        Test t1 = new Test();
        t1.fun2();
        t1.f2();
        t1.fun1();
        t1.f1();
        ITest.fun3();
        Abtest.fun4();
    }


    @Override
    public void fun2() {
        System.out.println("接口中的抽象方法");
    }

    @Override
    public void f2() {
        System.out.println("抽象类的抽象方法");
    }
}

abstract class Abtest {
    public int age = 20;

    public void f1() {
        System.out.println("抽象类普通方法");
    }

    ;

    static void fun4() {
        System.out.println("抽象类静态方法");
    }

    ;

    public abstract void f2();
}
